package com.authine.cloudpivot.ext.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @program: gomro
 * @description:
 * @author: wlw
 * @create: 2021-10-28 09:38
 **/
@Data
@Schema(description = "MessageIndexVo")
@Builder
public class MessageIndexVo {
    @Schema(description = "id")
    private Long id;
    /**
     * 删除标志
     */
    @Schema(description = "删除标志")
    private Boolean del = false;
    /**
     * 时间
     */
    @Schema(description = "时间")
    private LocalDateTime time;
    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String createdBy;
    /**
     * 最后操作人
     */
    @Schema(description = "最后操作人")
    private String lastModifiedBy;
    /**
     * 最后修改时间
     */
    @Schema(description = "最后修改时间")
    private LocalDateTime last;
    /**
     * 类型
     *     ALL(0, "全部消息"),
     *     EVENT(1, "系统事件"),
     *     NOTICE(2, "平台通知"),
     *     WORDS(3, "留言消息"),
     *     CLARIFY(4, "澄清消息"),
     *     INQUIRY(5,"询价事件"),
     *     ORDER(6,"订单事件"),
     *     FINANCE(7,"财务事件"),
     *     HOMEPOP(8, "首页弹窗");
     */
    @Schema(description = "事件类型")
    private String type;
    /**
     * 类型名称
     */
    @Schema(description = "类型名称")
    private String typeName;
    /**
     * 是否已读
     */
    @Schema(description = "是否已读")
    private Boolean read;
    /**
     * 发送id
     */
    @Schema(description = "发送者id")
    private Long senderId;
    /**
     * 发送者
     */
    @Schema(description = "发送者")
    private String sender;
    /**
     * 接受id
     */
    @Schema(description = "接受id")
    private Long receiverId;
    /**
     * 接受者
     */
    @Schema(description = "接受者")
    private String receiver;
    /**
     * 内容
     */
    @Schema(description = "内容")
    private String content;
    /**
     * 数量
     */
    @Schema(description = "数量")
    private Integer number;
}
